package cn.liontalk.springboot_es.repository.mysql;

import cn.liontalk.springboot_es.entity.MySqlBlog;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface    MySqlBlogRepository extends JpaRepository<MySqlBlog,Integer> {

    @Query("select * from t_blog where 1=1")
    List<MySqlBlog> findAll();
}
